<div class="main-call-contacts">
	<div class="ukefu-contacts-top" style="height: 420px;overflow: auto;">
		<div class="box" style="overflow: auto;">
			<div class="box-title">
				<h1 class="site-h1">
					详细信息
					<span style="float:right;">
						<#if contacts?? && contacts.owneruser=='' && user?? && contacts.ownerdept!='' && contacts.ownerdept==user.organ>
							<button class="layui-btn layui-btn-sm green" data-toggle="tip" href="/apps/contacts/view/receive.html?id=${contacts.id}" data-title="请确认是否领取该联系人？">
								<i class="kfont">&#xe654;</i>
								领取
							</button>
						</#if>
						<#if contacts?? && contacts.owneruser!='' && user?? && (contacts.owneruser=user.id || (isSup?? && isSup))>
						<button class="layui-btn layui-btn-sm green" data-toggle="tip" href="/apps/contacts/view/rle.html?id=${contacts.id}" data-title="请确认是否<#if contacts?? && user?? && contacts.owneruser==user.id>退回<#else>收回</#if>该联系人？">
							<#if contacts?? && user?? && contacts.owneruser==user.id>退回<#else>收回</#if>
						</button>
						</#if>
						<#if contacts?? && contacts.owneruser!='' && isSup?? && isSup>
						<button class="layui-btn layui-btn-sm green" data-toggle="tip" href="/apps/contacts/view/waste.html?id=${contacts.id}" data-title="请确认是否作废该联系人？">
							作废
						</button>
						</#if>
						<#if (isSup?? && isSup) || (user?? && user.superuser) || (user?? && (user.roleAuthMap["A02_A01_A02_B06"]?? || user.usertype == "0")) >
						<a class="layui-btn layui-btn-sm" href="/apps/contacts/partial/edit.html?id=${contacts.id!''}&itemid=${itemid!''}&ckind=${ckind!''}&p=<#if contactsList??>${contactsList.number+1}<#else>0</#if>&contactstype=${contactstype!''}&nowUrl=${nowUrl!''}" data-toggle="ajax" data-width="950" data-height="600" data-title="编辑联系人信息">
				  			<i class="layui-icon">&#xe642;</i>
				  			编辑
				  		</a>
				  		</#if>
						<#if contacts?? && isSup?? && isSup>
						<button class="layui-btn layui-btn-sm layui-btn-danger" data-toggle="tip" href="/apps/contacts/delete.html?id=${contacts.id!''}&itemid=${contacts.itemid!''}" data-title="请确认是否删除该联系人？">
							删除
						</button>
						</#if>
					</span>
				</h1>
			</div>
			<div class="box-body ukefu-contacts-detail" id="ukefu_contacts_info">
				<div class="layui-colla-content layui-show" style="padding:5px;">
					<table class="layui-table" lay-skin="line">
						<tbody>
							<tr class="tdHasContorllor design-dropable-td">
								<td align="right" nowrap="nowrap">
									性别：
								</td>
								<td >
									<#if contacts?? && contacts.gender=='1'>
										男
									<#elseif contacts?? && contacts.gender=='0'>
									女
									<#elseif contacts?? && contacts.gender=='-1'>
									未知
									<#else>
									未知
									</#if>
								</td>
								<td align="right" nowrap="nowrap">
									生日：
								</td>
								<td >
									${contacts.cbirthday!''}
								</td>
								<td align="right" nowrap="nowrap">
									电话：
								</td>
								<td >
									${contacts.entphone!''}
								</td>
								<td align="right" nowrap="nowrap">
									类别：
								</td>
								<td>
									<#if contacts?? && contacts.ctype=='contacts'>联系人</#if>
									<#if contacts?? && contacts.ctype=='customer'>客户</#if>
								</td>
							</tr>
							<tr class="tdHasContorllor design-dropable-td">
								<td align="right" nowrap="nowrap">
									类型：
								</td>
								<td nowrap="nowrap">
									<#if contacts?? && contacts.ckind?? && contacts.ckind != ''>
									<#list uKeFuDic['com.dic.contacts.ckind'] as macroSysDic>
									<#if contacts.ckind==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
								</td>
								<td align="right" nowrap="nowrap">
									手机号：
								</td>
								<td nowrap="nowrap">
									${contacts.mobileno!''}
								</td>
									<td align="right" nowrap="nowrap">
									电子邮件：
								</td>
								<td>
									${contacts.email!''}
								</td>
								<td align="right" nowrap="nowrap">
									创建时间：
								</td>
								<td nowrap="nowrap">
									<#if contacts.createtime??>${contacts.createtime?string('yyyy-MM-dd HH:mm:ss')}</#if>
								</td>
							</tr>
							<tr class="tdHasContorllor design-dropable-td">
								<td align="right" nowrap="nowrap">
									城市：
								</td>
								<td nowrap="nowrap">
									<#if contacts?? && contacts.province?? && contacts.province != ''>
									<#list uKeFuDic['com.dic.address.area'] as macroSysDic>
									<#if contacts.province==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
									<#if contacts?? && contacts.city?? && contacts.city != ''>
									<#list uKeFuDic[contacts.city+".subdic"] as macroSysDic>
									<#if contacts.city==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
									<#if contacts?? && contacts.area?? && contacts.area != ''>
									<#list uKeFuDic[contacts.area+".subdic"] as macroSysDic>
									<#if contacts.area==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
								</td>
								<td align="right" nowrap="nowrap">
									微信号：
								</td>
								<td nowrap="nowrap">
									${contacts.weixin!''}
								</td>
								<td align="right" nowrap="nowrap">
									地址：
								</td>
								<td colspan="5">
									${contacts.address!''}
								</td>
							</tr>
							<tr class="tdHasContorllor design-dropable-td">
								<td align="right" nowrap="nowrap">
									联系人状态：
								</td>
								<td>
									<#if contacts?? && contacts.business?? && contacts.business != ''>
									<#list uKeFuDic['com.dic.contacts.business'] as macroSysDic>
									<#if contacts.business==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
								</td>
								<td align="right" nowrap="nowrap">
									联系人说明：
								</td>
								<td colspan="5">
									${contacts.busmemo!''}
								</td>
							</tr>
							<#if user?? && user.superuser>
							<tr class="tdHasContorllor design-dropable-td">
								<td align="right" nowrap="nowrap">
									拨打状态（callstatus）：
								</td>
								<td>
									<#if contacts.callstatus??>${contacts.callstatus!''}</#if>
								</td>
								<td align="right" nowrap="nowrap">
									拨打结果（workstatus）：
								</td>
								<td >
									<#if contacts.workstatus??>${contacts.workstatus!''}</#if>
								</td>
								<td align="right" nowrap="nowrap" colspan="3">
									挂断原因（hangupcase）：
								</td>
								<td >
									<#if contacts.hangupcase??>${contacts.hangupcase!''}</#if>
								</td>
							</tr>
							</#if>
							<#if contacts?? && contacts.ctype?? && contacts.ctype == 'customer'>
							<tr class="tdHasContorllor design-dropable-td">
								<td align="right" nowrap="nowrap">
									客户名称：
								</td>
								<td>
									${contacts.cusname!''}
								</td>
								<td align="right" nowrap="nowrap">
									客户类型：
								</td>
								<td>
									<#if contacts?? && contacts.ekind?? && contacts.ekind != ''>
									<#list uKeFuDic['com.dic.contacts.entype'] as macroSysDic>
									<#if contacts.ekind==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
								</td>
								<td align="right" nowrap="nowrap">
									联系电话（客户）：
								</td>
								<td>
									${contacts.cusphone!''}
								</td>
								<td align="right" nowrap="nowrap">
									电子邮件（客户）：
								</td>
								<td>
									${contacts.cusemail!''}
								</td>
							</tr>
							<tr class="tdHasContorllor design-dropable-td">
								<td align="right" nowrap="nowrap">
									省份城市（客户）：
								</td>
								<td>
									<#if contacts?? && contacts.cusprovince?? && contacts.cusprovince != ''>
									<#list uKeFuDic['com.dic.address.area'] as macroSysDic>
									<#if contacts.cusprovince==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
									<#if contacts?? && contacts.cuscity?? && contacts.cuscity != ''>
									<#list uKeFuDic[contacts.cuscity+".subdic"] as macroSysDic>
									<#if contacts.cuscity==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
									<#if contacts?? && contacts.cusarea?? && contacts.cusarea != ''>
									<#list uKeFuDic[contacts.cusarea+".subdic"] as macroSysDic>
									<#if contacts.cusarea==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
								</td>
								<td align="right" nowrap="nowrap">
									客户地址：
								</td>
								<td colspan="5">
									${contacts.cusaddress!''}
								</td>
							</tr>
							<tr class="tdHasContorllor design-dropable-td">
								<td align="right" nowrap="nowrap">
									客户级别：
								</td>
								<td>
									<#if contacts?? && contacts.elevel?? && contacts.elevel != ''>
									<#list uKeFuDic['com.dic.contacts.elevel'] as macroSysDic>
									<#if contacts.elevel==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
								</td>
								<td align="right" nowrap="nowrap">
									客户来源：
								</td>
								<td>
									<#if contacts?? && contacts.esource?? && contacts.esource != ''>
									<#list uKeFuDic['com.dic.contacts.esource'] as macroSysDic>
									<#if contacts.esource==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
								</td>
								<td align="right" nowrap="nowrap">
									成熟度（客户）：
								</td>
								<td>
									<#if contacts?? && contacts.maturity?? && contacts.maturity != ''>
									<#list uKeFuDic['com.dic.contacts.maturity'] as macroSysDic>
									<#if contacts.maturity==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
								</td>
								<td align="right" nowrap="nowrap">
									行业（客户）：
								</td>
								<td>
									<#if contacts?? && contacts.industry?? && contacts.industry != ''>
									<#list uKeFuDic['com.dic.contacts.industry'] as macroSysDic>
									<#if contacts.industry==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
								</td>
							</tr>
							<tr class="tdHasContorllor design-dropable-td">
								<td align="right" nowrap="nowrap">
									客户状态：
								</td>
								<td>
									<#if contacts?? && contacts.cusvalidstatus?? && contacts.cusvalidstatus != ''>
									<#list uKeFuDic['com.dic.contacts.validstatus'] as macroSysDic>
									<#if contacts.cusvalidstatus==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
								</td>
								<td align="right" nowrap="nowrap">
									客户说明：
								</td>
								<td colspan="5">
									${contacts.cusdescription!''}
								</td>
							</tr>
							</#if>
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
	<div class="ukefu-contacts-bottom" id="ukefu-softphone-bottom" style="background-color:#ffffff;<#if (contacts?? && contacts.ctype?? && contacts.ctype == 'contacts' ) || !contacts.ctype??>height: calc(100% - 250px);<#else>height: calc(100% - 410px);</#if>">
		<#include "/apps/business/contacts/include/viewcontent.html"/>
	</div>
</div>